package com.xd.core.business.mapper;

import com.xd.core.business.dto.CertificationQuery;
import com.xd.core.business.entity.Certification;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xd.core.business.vo.CertificationDetailVo;
import com.xd.core.business.vo.CertificationPageVo;
import com.xd.core.business.vo.CertificationVo;
import com.xd.core.company.dto.HomeQueryDto;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 * 公证表 Mapper 接口
 * </p>
 *
 * @author ZX
 * @since 2025-02-27
 */
public interface CertificationMapper extends BaseMapper<Certification> {

    List<CertificationPageVo> getList(@Param("query") CertificationQuery query, @Param("ids") List<Integer> ids, @Param("companyId") Integer companyId,
                                      @Param("companyType") String companyType);

    CertificationVo getCertificationDetail(Integer id);

    Integer selectCounts(@Param("query") HomeQueryDto query,
                         @Param("companyId") Integer companyId,
                         @Param("type") String type);

    CertificationDetailVo getCertification(Integer id);

    void refuseCertification(String certificationId, String reason);

    void updateStatus(String certificationId);
}
